package com.mfin.persistence;


public class OptimisticLockingException extends PersistenceException {
	public static final String STALE_OBJECT_STATE = "Object state is stale";
	private ObjectIdentity objectIdentity;

	public OptimisticLockingException() {
		super(STALE_OBJECT_STATE);
	}

	public OptimisticLockingException(ObjectIdentity objectIdentity) {
		super(STALE_OBJECT_STATE);
		this.objectIdentity = objectIdentity;
	}

	public ObjectIdentity getObjectIdentity() {
		return objectIdentity;
	}

	public void setObjectIdentity(ObjectIdentity objectIdentity) {
		this.objectIdentity = objectIdentity;
	}
}
